<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-spring4-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:th="http://www.thymeleaf.org">
<head>
    <title>首页</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<div class="container"  id="content">
    <section class="content-header">
        <h1>
            <i class="fa fa-users"></i>
            <strong>去向管理</strong>
        </h1>
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-home "></i>Home</a></li>
            <li>日常管理</li>
            <li class="active">去向管理</li>
        </ol>
    </section>
    <!-- Main content -->
    <section class="content">
        <div class="box box-info">
            <div class="box-body">
                <div class="form-inline">
                    <input class="form-control" type="hidden" id="userId" name="userId" th:value="${userId}"/>
                    <!--<input class="form-control" type="hidden" id="superior" name="superior" th:value="${superior}"/>-->
                    <!--<input class="form-control" type="hidden" id="areaName" name="areaName" th:value="${areaName}"/>-->
                    <div class="input-group">
                        <input type="text" id="keyword" class="form-control" placeholder="search..." style="width: 240px;" />
                        <!-- <button type="button" class="btn btn-info print">打印</button>
                        <button type="button" class="btn btn-info import">导出</button> -->
                        <button type="button" class="btn btn-info searchBtn">查询</button>
                        <button type="button" name="reset" id="reset-btn" class="btn btn-info resetBtn">撤消</button>
                    </div>
                    <div class="form-group pull-right">
                        <button th:if="${module.canDelete==true}" class="btn btn-info pull-right delDirectionBtn">删除</button>
                        <button th:if="${module.canModify==true}" class="btn btn-info pull-right editDirectionBtn">编辑</button>
                        <button th:if="${module.canAdd==true}" type="button" class="btn btn-info pull-right addBtn">新建</button>
                        <button th:if="${module.canRead==true}" class="btn btn-info pull-right searchBtn">查询</button>
                        <button th:if="${module.canOther1==true}" class="btn btn-info pull-right other1Btn">其他1</button>
                        <button th:if="${module.canOther2==true}" type="button" class="btn btn-info pull-right other2Btn">其他2</button>

                    </div>
                </div>
            </div>
            <div class="box box-body">
                <table id="directionTable" class="mytable dataTable table-bordered text-center table-striped table-hover" cellspacing="0" width="100%">
                    <thead>
                    <tr>
                        <th width="5%">序号</th>
                        <th width="2%"><input type="checkbox" id="checkAll"/></th>
                        <th width="25%">活动名称</th>
                        <th width="25%">地址</th>
                        <th width="10%">登记人</th>
                        <th width="10%">部门</th>
                        <th width="12%">活动日期</th>
                    </tr>
                    </thead>
                    <tbody>
                    </tbody>
                </table>
            </div>
        </div>
    </section>
    <!--去向录入弹窗-->
    <div class="modal" id="directionModal">
        <div class="modal-dialog" role="dialog">
            <form id="directionEditForm">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title"><strong>去向录入</strong></h4>
                    </div>

                    <div class="modal-body">
                        <input type="hidden" name="id" id="id" />
                        <input type="hidden" name="createTime" id="createTime" />
                        <div class="form-horizontal">
                            <div class="form-group">
                                <label class="col-sm-2 control-label">活动名称</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control"  type="text" name="activityName"  id="activityName"  datatype="*,*1-100"  nullmsg="请输入活动名称" />
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                                <label class="col-sm-2 control-label">地址</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control"  type="text" name="address"  id="address"  datatype="*1-100" nullmsg="请输入地址"/>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-2 control-label">活动日期</label>
                                <div class="col-sm-4">
                                    <div class="col-md-11">
                                        <input class="form-control" type="date" name="activityDate" id="activityDate" datatype="*,*1-100" nullmsg="请输入时间"/>
                                    </div>
                                    <div class="col-md-1">
                                        <span style="color:#F00;fontsize:30px">*</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary saveBtn" >保存</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>

                    </div>
                </div>
            </form>
        </div>
    </div>
    <script th:src="@{/direction/directionindex.js}"></script>
</div>

</body>
</html>